import request from "@/utils/request";
import defaultSettings from "@/settings";

//数据字典查询查询
export const Cnaps2Basedata = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/cnaps2/basedata/opDictList `,
  exportUrl: `${defaultSettings.ctx.cnapsApp}/cnaps2/basedata/opDictList `,
  delUrl: `${defaultSettings.ctx.cnapsApp}`,
};

// 通过value获取desc信息
export function getBasedata(dataType,dataValue) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/cnaps2/basedata/${dataType}/check`,
    method: "get",
    params: {
      key: dataValue,
    },
  });
}
